package org.acra.b;

import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import java.util.TreeMap;
import org.acra.ACRA;
import org.acra.c;

final class q
{
  public static String a(Context paramContext)
  {
    StringBuilder localStringBuilder = new StringBuilder();
    TreeMap localTreeMap = new TreeMap();
    localTreeMap.put("default", PreferenceManager.getDefaultSharedPreferences(paramContext));
    String[] arrayOfString = ACRA.getConfig().b();
    if (arrayOfString != null)
    {
      int i = arrayOfString.length;
      for (int j = 0; j < i; j++)
      {
        String str3 = arrayOfString[j];
        localTreeMap.put(str3, paramContext.getSharedPreferences(str3, 0));
      }
    }
    Iterator localIterator1 = localTreeMap.keySet().iterator();
    if (localIterator1.hasNext())
    {
      String str1 = (String)localIterator1.next();
      SharedPreferences localSharedPreferences = (SharedPreferences)localTreeMap.get(str1);
      if (localSharedPreferences != null)
      {
        Map localMap = localSharedPreferences.getAll();
        Iterator localIterator2;
        if ((localMap != null) && (localMap.size() > 0))
          localIterator2 = localMap.keySet().iterator();
        while (localIterator2.hasNext())
        {
          String str2 = (String)localIterator2.next();
          if (!a(str2))
            if (localMap.get(str2) != null)
            {
              localStringBuilder.append(str1).append('.').append(str2).append('=').append(localMap.get(str2).toString()).append("\n");
            }
            else
            {
              localStringBuilder.append(str1).append('.').append(str2).append('=').append("null\n");
              continue;
              localStringBuilder.append(str1).append('=').append("empty\n");
            }
        }
      }
      while (true)
      {
        localStringBuilder.append('\n');
        break;
        localStringBuilder.append("null\n");
      }
    }
    return localStringBuilder.toString();
  }

  private static boolean a(String paramString)
  {
    String[] arrayOfString = ACRA.getConfig().H();
    int i = arrayOfString.length;
    for (int j = 0; ; j++)
    {
      boolean bool = false;
      if (j < i)
      {
        if (paramString.matches(arrayOfString[j]))
          bool = true;
      }
      else
        return bool;
    }
  }
}

/* Location:           D:\Studium\Bachelorarbeit\BA Marcus Wobig\BA\BA\Decompiler\PicturePassword APK\Programm\PicturePassword_dex2jar.jar
 * Qualified Name:     org.acra.b.q
 * JD-Core Version:    0.6.2
 */